﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Globalization;
using System.Web.Mvc;
using System.Web.Security;

namespace EvinceUI.Models
{
    public class ChangePasswordModel
    {
        [Required]
        [DataType(DataType.Password)]
        [Display(Name = "Current password")]
        public string OldPassword { get; set; }

        [Required]
        [StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)]
        [DataType(DataType.Password)]
        [Display(Name = "New password")]
        public string NewPassword { get; set; }

        [DataType(DataType.Password)]
        [Display(Name = "Confirm new password")]
        [Compare("NewPassword", ErrorMessage = "The new password and confirmation password do not match.")]
        public string ConfirmPassword { get; set; }
    }

    public class LogOnModel
    {
        [Required]
        [Display(Name = "User name")]
        public string UserName { get; set; }

        [Required]
        [DataType(DataType.Password)]
        [Display(Name = "Password")]
        public string Password { get; set; }

        [Display(Name = "Remember me?")]
        public bool RememberMe { get; set; }
    }

    public class RegisterModel
    {
        //[Required]
        //[Display(Name = "User name")]
        //public string UserName { get; set; }

        //[Required]
        //[DataType(DataType.Text)]
        //[Display(Name = "Contact")]
        //public string Email { get; set; }

        //[Required]
        //[StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)]
        //[DataType(DataType.Password)]
        //[Display(Name = "Password")]
        //public string Password { get; set; }

        //[DataType(DataType.Password)]
        //[Display(Name = "Confirm password")]
        //[Compare("Password", ErrorMessage = "The password and confirmation password do not match.")]
        //public string ConfirmPassword { get; set; }
        public Guid ID { get; set; }

        [Required]
        [DataType(DataType.Text)]
        [Display(Name = "First Name")]
        public string FirstName { get; set; }

        [Required]
        [DataType(DataType.Text)]
        [Display(Name = "Last Name")]
        public string LastName { get; set; }

        [Required]
        [DataType(DataType.Text)]
        [Display(Name = "Address")]
        public string TemporaryAddress { get; set; }

        [Required]
        [DataType(DataType.Text)]
        [Display(Name = "Contact")]
        public string ContactNumber1 { get; set; }

        public string MiddleName { get; set; }
        
        [Required]
        [DataType(DataType.EmailAddress)]
        [Display(Name = "Email address")]
        public string Email { get; set; }

        public string AlternateEmail { get; set; }

        [Required]
        [DataType(DataType.Text)]
        [Display(Name = "DOB")]
        public string DateOfBirth { get; set; }
        [Required]
        [DataType(DataType.Text)]
        [Display(Name = "Gender")]
        public string Gender { get; set; }


        public string Image1 { get; set; }
        public string ContactNumber2 { get; set; }

        [Required]
        [DataType(DataType.Text)]
        [Display(Name = "Permanent Address")]
        public string PermanentAddress { get; set; }

        [Required]
        [DataType(DataType.Text)]
        [Display(Name = "PIN")]
        public string Pincode { get; set; }

        [Required]
        [DataType(DataType.Text)]
        [Display(Name = "State")]
        public string State { get; set; }

        [Required]
        [DataType(DataType.Text)]
        [Display(Name = "City")]
        public string City { get; set; }
        public string Password { get; set; }
        public Guid UserRoleId { get; set; }
        public string EmployeeId { get; set; }
        public DateTime CreatedDate { get; set; }
        public int IsActive { get; set; }
        public string GCourse { get; set; }
        public string GFrom { get; set; }
        public string GTo { get; set; }
        public string GCourseType { get; set; }
        public string GUniversity { get; set; }
        public string GCGPA { get; set; }
        public string PCourse { get; set; }
        public string PFrom { get; set; }
        public string PTo { get; set; }
        public string PCourseType { get; set; }
        public string PUniversity { get; set; }
        public string PCGPA { get; set; }
        public string XCourse { get; set; }
        public string XFrom { get; set; }
        public string XTo { get; set; }
        public string XCourseType { get; set; }
        public string XUniversity { get; set; }
        public string XCGPA { get; set; }
        public string XIICourse { get; set; }
        public string XIIFrom { get; set; }
        public string XIITo { get; set; }
        public string XIICourseType { get; set; }
        public string XIIUniversity { get; set; }
        public string XIICGPA { get; set; }

        public string EmployeeFullName { get; set; }
        public string ReportToManager { get; set; }
        public string AssignToEmployee { get; set; }
        public string UserRoleString { get; set; }
    }

    public class TotalLeaves
    {
        public string Value { get; set; }
        public string Text { get; set; }
    }
}
